package com.learn.apis;

import com.learn.resp.Result;
import com.learn.resp.ReturnCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/08/08
 * @description ch12 sentinel
 * fallback服务降级处理类
 */
@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi {
    @Override
    public Result<String> getSentinel(Integer id) {
        return Result.fail(ReturnCodeEnum.RC500.getCode(), "FallBack服务降级");
    }
}
